﻿<%@ Page Title="添加产品" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeBehind="NewProdect.aspx.cs" Inherits="IMS_WEB.NewProdect" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style1
        {}
        .style2
        {
            height: 24px;
        }
        #tbRemark
        {
            height: 109px;
            width: 458px;
        }
    </style>

 


    <script language="javascript" type="text/javascript">
// <![CDATA[

        function tbName_onclick() {

        }

        function tbRemark_onclick() {

        }

// ]]>
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <script type="text/javascript">
    $(document).ready(function() {
             $("#aspnetForm").validate({
                rules: {
                    <%=tbProductCode.UniqueID %>: {
                        minlength: 2,
                        required: true
                    },
                     <%=tbType.UniqueID %>: {                       
                      minlength: 2,
                        required: true
                    }
                }, messages: {}
            });
        });
    </script>
    <div>
    
        添加商品：<br />
        <br />
        
        <table style="width:100%;">
            <tr>
                <td class="style2">
                    商品编号</td>
                <td class="style2">
                    <asp:TextBox ID="tbProductCode" runat="server" MaxLength="64"></asp:TextBox>
                &nbsp;</td>
            </tr>
            <tr>
                <td class="style2">
                    外部编号</td>
                <td class="style2">
                    <asp:TextBox ID="tbProductSN" runat="server" MaxLength="32"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style2">
                    主机编号</td>
                <td class="style2">
                    <asp:TextBox ID="tbProductMainClass" runat="server" MaxLength="128"></asp:TextBox>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    商品名称</td>
                <td>
                    <input id="tbName" type="text"  runat="Server" 
                        onclick="return tbName_onclick()" maxlength="128" /></td>
            </tr>
            <tr>
                <td class="style1">
                    型号/规格</td>
                <td>
                    <input id="tbType" type="text" runat="Server" maxlength="2"/></td>
            </tr>
            <tr>
                <td class="style1">
                    单价</td>
                <td>
                    <input id="tbPrice" type="text" runat="Server" maxlength="18"/></td>
            </tr>
            <tr>
                <td class="style1">
                    单位</td>
                <td>
                    <input id="tbUnit" type="text" runat="server" maxlength="10" /></td>
            </tr>
            <tr>
                <td class="style1">
                    售价</td>
                <td>
                    <input id="tbSalePrice" type="text" runat="server" maxlength="18"  /></td>
            </tr>
            <tr>
                <td class="style1">
                    生产厂商</td>
                <td>
                    <asp:TextBox ID="tbCompany" runat="server" MaxLength="64"></asp:TextBox>
                    <ajaxToolkit:AutoCompleteExtender ID="TextBox1_AutoCompleteExtender" 
                        runat="server" DelimiterCharacters="" Enabled="True" ServicePath="~/WebService.asmx"  
                        ServiceMethod="GetCompanyList"
                        TargetControlID="tbCompany" MinimumPrefixLength="1">
                    </ajaxToolkit:AutoCompleteExtender>
                    <ajaxToolkit:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
                    </ajaxToolkit:ToolkitScriptManager>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    备注</td>
                <td>
                    <input id="tbRemark" type="text" runat="Server" 
                        onclick="return tbRemark_onclick()" maxlength="512" /></td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
                <td>
                    <input id="Submit" type="submit" value="提交" runat="Server" onclick="javascript:return confirm('是否要添加新厂家信息');"
                     onserverclick="btnSubmit_Click" /></td>
            </tr>
        </table>
  
    
    </div>

</asp:Content>